home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmCCCCrrrreeeeaaaatttteeeePPPPuuuullllllllddddoooowwwwnnnnMMMMeeeennnnuuuu((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCCrrrreeeeaaaatttteeeePPPPuuuullllllllddddoooowwwwnnnnMMMMeeeennnnuuuu((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_C_r_e_a_t_e_P_u_l_l_d_o_w_n_M_e_n_u - A RowColumn widget convenience
- creation function
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/RowColumn.h>
-
- Widget XmCreatePulldownMenu (ppppaaaarrrreeeennnntttt,,,, nnnnaaaammmmeeee,,,, aaaarrrrgggglllliiiisssstttt,,,, aaaarrrrggggccccoooouuuunnnntttt)
- _W_i_d_g_e_t ppppaaaarrrreeeennnntttt;
- _S_t_r_i_n_g nnnnaaaammmmeeee;
- _A_r_g_L_i_s_t aaaarrrrgggglllliiiisssstttt;
- _C_a_r_d_i_n_a_l aaaarrrrggggccccoooouuuunnnntttt;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _X_m_C_r_e_a_t_e_P_u_l_l_d_o_w_n_M_e_n_u creates an instance of a RowColumn
- widget of type _X_m_M_E_N_U__P_U_L_L_D_O_W_N and returns the associated
- widget ID. When using this function to create the Pulldown
- MenuPane, a MenuShell widget is automatically created as the
- parent of the MenuPane. If the widget specified by the
- ppppaaaarrrreeeennnntttt parameter is a Popup or a Pulldown MenuPane, the
- MenuShell widget is created as a child of the ppppaaaarrrreeeennnntttt's
- MenuShell; otherwise, it is created as a child of the
- specified ppppaaaarrrreeeennnntttt widget.
-
- _X_m_C_r_e_a_t_e_P_u_l_l_d_o_w_n_M_e_n_u is provided as a convenience function
- for creating RowColumn widgets configured to operate as
- Pulldown MenuPanes and is not implemented as a separate
- widget class.
-
- A Pulldown MenuPane displays a 3-D shadow, unless the
- feature is disabled by the application. The shadow appears
- around the edge of the MenuPane.
-
- A Pulldown MenuPane is used when creating submenus that are
- to be attached to a CascadeButton or a CascadeButtonGadget.
- This is the case for all MenuPanes that are part of a
- PulldownMenu system (a MenuBar), the MenuPane associated
- with an OptionMenu, and any MenuPanes that cascade from a
- Popup MenuPane. Pulldown MenuPanes that are to be
- associated with an OptionMenu must be created before the
- OptionMenu is created.
-
- The Pulldown MenuPane must be attached to a CascadeButton or
- CascadeButtonGadget that resides in a MenuBar, a Popup
- MenuPane, a Pulldown MenuPane, or an OptionMenu. This is
- done by using the button resource _X_m_N_s_u_b_M_e_n_u_I_d.
-
- A MenuShell widget is required between the Pulldown MenuPane
- and its parent. If the application uses this convenience
- function for creating a Pulldown MenuPane, the MenuShell is
- automatically created as the real parent of the MenuPane;
- otherwise, it is the application's responsibility to create
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmCCCCrrrreeeeaaaatttteeeePPPPuuuullllllllddddoooowwwwnnnnMMMMeeeennnnuuuu((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCCrrrreeeeaaaatttteeeePPPPuuuullllllllddddoooowwwwnnnnMMMMeeeennnnuuuu((((3333XXXX))))
-
-
-
- the MenuShell widget.
-
- To function correctly when incorporated into a menu, the
- Pulldown MenuPane's hierarchy must be considered; this
- hierarchy depends on the type of menu system that is being
- built as follows:
-
- +o If the Pulldown MenuPane is to be pulled down from a
- MenuBar, its ppppaaaarrrreeeennnntttt must be the MenuBar.
-
- +o If the Pulldown MenuPane is to be pulled down from a
- Popup or another Pulldown MenuPane, its ppppaaaarrrreeeennnntttt must be
- that Popup or Pulldown MenuPane.
-
- +o If the Pulldown MenuPane is to be pulled down from an
- OptionMenu, its ppppaaaarrrreeeennnntttt must be the same as the
- OptionMenu parent.
-
- ++++oooo Specifies the parent widget ID
-
- ++++oooo Specifies the name of the created widget
-
- ++++oooo Specifies the argument list
-
- ++++oooo Specifies the number of attribute/value pairs in the
- argument list (aaaarrrrgggglllliiiisssstttt)
-
- PullDown MenuPanes support tear-off capabilities for tear-
- off menus through _X_m_R_o_w_C_o_l_u_m_n resources. For a complete
- definition of RowColumn and its associated resources, see
- _X_m_R_o_w_C_o_l_u_m_n(_3_X).
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- Returns the RowColumn widget ID.
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _X_m_C_a_s_c_a_d_e_B_u_t_t_o_n(_3_X), _X_m_C_a_s_c_a_d_e_B_u_t_t_o_n_G_a_d_g_e_t(_3_X),
- _X_m_C_r_e_a_t_e_O_p_t_i_o_n_M_e_n_u(_3_X), _X_m_C_r_e_a_t_e_P_o_p_u_p_M_e_n_u(_3_X),
- _X_m_C_r_e_a_t_e_S_i_m_p_l_e_P_u_l_l_d_o_w_n_M_e_n_u(_3_X), _X_m_M_e_n_u_S_h_e_l_l(_3_X),
- _X_m_R_o_w_C_o_l_u_m_n(_3_X), and _X_m_V_a_C_r_e_a_t_e_S_i_m_p_l_e_P_u_l_l_d_o_w_n_M_e_n_u(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-